#include<iostream>
using namespace std;

struct Node{
    int data;
    int l, r;
}tr[110];

int main() {
    int n;
    cin >> n;
    for(int i=1; i<=n; i++) {
        cin >> tr[i].data >> tr[i].l >> tr[i].r;
    }
    
    return 0;
} 